package appapi.dao;

import appapi.Request.Basic.MaintenanItemReq;
import appapi.entity.basic.MaintenanItemEntity;
import appapi.entity.basic.OperatingTypeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import appapi.entity.Zhongjiao.MaintenanitemDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/25 10:00
 * @description:
 */

@Mapper
public interface MaintenanitemMapper extends BaseMapper<MaintenanItemEntity> {
    List<MaintenanItemEntity> queryList(@Param("req") MaintenanItemReq req);

    MaintenanItemEntity selectDetail(Long itemId);

    int count(MaintenanItemEntity entity);

    int deleteByPrimaryKey(Long mainItemId);

    int insert(MaintenanitemDto record);

    int insertSelective(MaintenanitemDto record);

    int updateByPrimaryKeySelective(MaintenanitemDto record);

    int updateByPrimaryKey(MaintenanitemDto record);

    List<Map<String, Object>> selectEquipTypeId(Long equipTypeId);

    int updateByEntity(MaintenanItemEntity entity);

}